<%@page contentType="text/html; charset=UTF-8"%>
<html>
<head>
<title>登录界面</title>
<%@ include file="/commons/meta.jsp"%>
<script src="${ctx}/widgets/jquery/jquery-1.3.2.min.js"
	type="text/javascript"></script>
<script type="text/javascript">
	function doSign() {
		loginForm.submit();
		return true;
	}

	//响应回车事件
	function bindEnter(obj) {
		if (obj.keyCode == 13) {
			doSign();
			obj.returnValue = false;
		}
	}
</script>
</head>
<body onkeyDown="bindEnter(event)" style="height: 100%; width: 100%">
	<table width="100%" height="100%" border="0" cellpadding="0"
		cellspacing="0" id="bodyTable">
		<tr>
			<td valign="bottom" background="images/login/bjt.GIF">
				<table width="100%" height="441" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td align="center" valign="top" background="images/login/bj.GIF">
							<table width="492" height="399" border="0" cellpadding="0"
								cellspacing="0">
								<tr>
									<td align="center" valign="top"
										background="images/login/c01.GIF">
										<table width="400" height="90" border="0" cellpadding="0"
											cellspacing="0">
											<tr>
												<td>&nbsp;</td>
											</tr>
										</table>
										<form method="post" id="loginForm"
											action="logincheck">
											<table width="450" height="132" border="0" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="204" height="132">&nbsp; <br></td>
													<td width="227">
														<table width="227" height="74" border="0" cellpadding="0"
															cellspacing="0">
															<c:if
																test="${not empty SPRING_SECURITY_LAST_EXCEPTION || not empty SPRING_SECURITY_403_EXCEPTION}">
																<tr>
																	<td colspan='3'>&nbsp;&nbsp; <font color="red">
																			登录失败:<c:out
																				value="${SPRING_SECURITY_LAST_EXCEPTION.message}"></c:out>
																				<c:out
																				value="${SPRING_SECURITY_403_EXCEPTION.message}"></c:out>
																	</font> <br> <br>
																	</td>
																</tr>
															</c:if>
															<tr>
																<td width="70" height="20" align="center"><span
																	class="style1">用户名：</span> <br></td>
																<td width="157" colspan=2><input name="login_username"
																	id="login_username" type="text" size="16" value=""
																	onfocus="this.select();"> <br></td>
															</tr>
															<tr>
																<td width="70" height="7"><br></td>
																<td width="157" height="7" colspan=2><br></td>
															</tr>
															<tr>
																<td width="70" height="20" align="center"><span
																	class="style1">口 令：</span> <br></td>
																<td width="157" colspan=2><input type="password"
																	name="login_password" id="login_password" size="16"
																	onfocus="this.select();"> <br></td>
															</tr>
															<tr>
																<td width="70" height="7"><br></td>
																<td width="157" height="7" colspan=2><br></td>
															</tr>
														</table>
														<table width="200" height="10" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td height="10"></td>
															</tr>
														</table>
														<table width="200" height="22" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td width="68"><input type="checkbox" name="autoLogin" id="autoLogin" value="true">记住我</td>
																<td width="49" align="right" valign="middle"><img
																	src="images/login/dl.GIF" width="40" height="22"
																	onclick="doSign();"></td>
																<td width="83" align="left" valign="middle"><img
																	src="images/login/cz.GIF" width="41" height="22"
																	onClick="loginForm.reset();"></td>
															</tr>
														</table>
													</td>
													<td width="19">&nbsp;</td>
												</tr>
											</table>
										</form>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</body>
<%
	Cookie[] cookies = request.getCookies();
	if(cookies !=null){
		for(Cookie cookie :cookies){
			%>
			<%=cookie.getName() + "-->" +cookie.getValue() %><br>
			<%
		}
	}
%>
</html>
